/*
 * @Date: 2025-11-04 16:18:32
 * @FilePath: /img-toolbox/vite.config.js
 * @LastEditTime: 2025-11-07 15:18:07
 * @LastEditors: 赵俊林 cho955@outlook.com
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  base: '/', // 确保资源路径正确
  build: {
    outDir: 'dist',
    assetsDir: 'assets'
  },
  preview: {
    port: 1666,
    host: '0.0.0.0', // 允许外部访问
    strictPort: true
  }
})
